<%@ Page language="c#" Codebehind="AccountSettings.aspx.cs" AutoEventWireup="false" Inherits="CommunityServer.ControlPanel.Membership.AccountSettings" MasterPageFile="~/ControlPanel/Masters/MembershipAdmin.master" %>

<asp:Content ContentPlaceHolderId="DescriptionRegion" runat="server"></asp:Content>

<asp:Content ContentPlaceHolderId="TaskRegion" runat="Server">
    <CP:ControlPanelSelectedNavigation runat="server" SelectedNavItem="AccountSettings" />
	<CP:statusmessage id="formStatus" runat="server"></CP:statusmessage>
	<TWC:TabbedPanes runat="server"
	    PanesCssClass="CommonPane"
        TabSetCssClass="CommonPaneTabSet"
        TabCssClasses="CommonPaneTab"
        TabSelectedCssClasses="CommonPaneTabSelected"
        TabHoverCssClasses="CommonPaneTabHover">
		
		<TWC:TabbedPane runat="server">
		<Tab><cp:resourcecontrol runat="server" resourcename="CP_Membership_Settings_Registration_Title" /></Tab>
		<Content>
		    <TABLE cellSpacing="0" cellPadding="3" border="0">
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel7" ResourceName="CP_Membership_Settings_AllowLogin" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_AllowLogin_Descr" />
					</TD>
				    <TD class="CommonFormField">
					    <cp:YesNoRadioButtonList id="optAllowLogin" runat="server" RepeatColumns="2" ></cp:YesNoRadioButtonList></TD>
			    </TR>
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel21" ResourceName="CP_Membership_Settings_EnableBannedUsersToLogin" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_EnableBannedUsersToLogin_Descr" />
					</TD>
				    <TD class="CommonFormField">
					    <cp:YesNoRadioButtonList id="optEnableBannedUsersToLogin" runat="server" RepeatColumns="2" ></cp:YesNoRadioButtonList></TD>
			    </TR>
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel9" ResourceName="CP_Membership_Settings_AllowNew" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_AllowNew_Descr" />
					</TD>
				    <TD class="CommonFormField">
					    <cp:YesNoRadioButtonList id="optAllowNewUserRegistration" runat="server" RepeatColumns="2" ></cp:YesNoRadioButtonList></TD>
			    </TR>
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel  runat="server" ResourceName="CP_Membership_Settings_ShowContactCheckboxes" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_ShowContactCheckboxes_Descr" /></TD>
				    <TD class="CommonFormField">
					    <cp:YesNoRadioButtonList id="optShowContactCheckboxes" runat="server" RepeatColumns="2" ></cp:YesNoRadioButtonList></TD>
			    </TR>
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel11" ResourceName="CP_Membership_Settings_NewUserModLevel" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_NewUserModLevel_Descr" /></TD>
				    <TD class="CommonFormField">
					    <cp:ModerationLevelDropDownList id="ddlNewUserModerationLevel" runat="server" ></cp:ModerationLevelDropDownList></TD>
			    </TR>
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel runat="server" ResourceName="CP_Membership_Settings_UserNameRegEx" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_UserNameRegEx_Descr" /></TD>
				    <TD class="CommonFormField" noWrap>
					    <asp:TextBox id="txtUserNameRegEx" runat="server" ></asp:TextBox>
					    <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserNameRegEx"
						    Font-Bold="True" ErrorMessage="*"></asp:RequiredFieldValidator></TD>
			    </TR>
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel13" ResourceName="CP_Membership_Settings_UserNameMinLength" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_UserNameMinLength_Descr" /></TD>
				    <TD class="CommonFormField" noWrap>
					    <asp:TextBox id="txtUsernameMinLength" runat="server"  MaxLength="3"></asp:TextBox>
					    <asp:RequiredFieldValidator id="UsernameMinLengthValidator" runat="server" ControlToValidate="txtUsernameMinLength"
						    Font-Bold="True" ErrorMessage="*"></asp:RequiredFieldValidator>
				        <asp:RegularExpressionValidator runat="server" ControlToValidate="txtUsernameMinLength" ErrorMessage="*" 
                                Display="Dynamic" ValidationExpression="^[0-9]*$" />
				    </TD>
			    </TR>
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel14" ResourceName="CP_Membership_Settings_UserNameMaxLength" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_UserNameMaxLength_Descr" /></TD>
				    <TD class="CommonFormField">
					    <asp:TextBox id="txtUsernameMaxLength" runat="server"  MaxLength="3"></asp:TextBox>
					    <asp:RequiredFieldValidator id="UsernameMaxLengthValidator" runat="server" ControlToValidate="txtUsernameMaxLength"
						    Font-Bold="True" ErrorMessage="*"></asp:RequiredFieldValidator>
				        <asp:RegularExpressionValidator runat="server" ControlToValidate="txtUsernameMaxLength" ErrorMessage="*" 
                                Display="Dynamic" ValidationExpression="^[0-9]*$" />
				    </TD>
			    </TR>
			    <TR>
				    <TD colspan="2">
				        <div class="CommonFormFieldName">
					        <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel17" ResourceName="CP_Membership_Settings_AccountActivate" /></strong><br />
					        <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_AccountActivate_Descr" />
					    </div>
				        <div class="CommonFormField">
					        <cp:AccountActivationRadioButtonList id="optAccountActivation" runat="server" RepeatColumns="2" ></cp:AccountActivationRadioButtonList></TD>
					    </div>
                    </td>
			    </TR>
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel19" ResourceName="CP_Membership_Settings_PasswordRecovery" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_PasswordRecovery_Descr" /></TD>
				    <TD class="CommonFormField">
					    <cp:PasswordRecoveryRadioButtonList id="optPasswordRecovery" runat="server" RepeatColumns="3"></cp:PasswordRecoveryRadioButtonList></TD>
			    </TR>
			    <TR>
				    <TD class="CommonFormFieldName">
					    <strong><cp:ResourceLabel runat="server" ResourceName="CP_Membership_Settings_PasswordRegEx" /></strong><br />
					    <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_PasswordRegEx_Descr" /></TD>
				    <TD class="CommonFormField" noWrap>
					    <asp:TextBox id="txtPasswordRegEx" runat="server" ></asp:TextBox></TD>
			    </TR>
		    </TABLE>
		</Content>
		</TWC:TabbedPane>
		
		<TWC:TabbedPane runat="server">
		    <Tab><cp:resourcecontrol runat="server" resourcename="CP_Membership_Settings_Profile_Title" /></Tab>
		    <Content>
		          <TABLE cellSpacing="0" cellPadding="0" border="0">
			        <TR>
				        <TD class="CommonFormFieldName">
					        <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel28" ResourceName="CP_Membership_Settings_AllowSignatures" /></strong><br />
					        <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_AllowSignatures_Descr" />
				        </TD>
				        <TD class="CommonFormField">
					        <cp:YesNoRadioButtonList id="optAllowSignatures" runat="server" RepeatColumns="2" ></cp:YesNoRadioButtonList>
				        </TD>
			        </TR>
			        <TR>
				        <TD class="CommonFormFieldName">
					        <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel30" ResourceName="CP_Membership_Settings_EnableSignatures" /></strong><br />
					        <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_EnableSignatures_Descr" />
				        </TD>
				        <TD class="CommonFormField">
					        <cp:YesNoRadioButtonList id="optEnableSignatures" runat="server" RepeatColumns="2" ></cp:YesNoRadioButtonList>
				        </TD>
			        </TR>
			        <TR>
				        <TD class="CommonFormFieldName">
					        <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel32" ResourceName="CP_Membership_Settings_SignatureMaxLength" /></strong><br />
					        <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_SignatureMaxLength_Descr" />
				        </TD>
				        <TD class="CommonFormField">
					        <asp:TextBox id="txtSignatureMaxLength" runat="server"  MaxLength="4"></asp:TextBox>
					        <asp:RegularExpressionValidator id="txtSignatureMaxLengthValidator" runat="server" ErrorMessage="*"
						        ValidationExpression="[0-9]*" ControlToValidate="txtSignatureMaxLength"></asp:RegularExpressionValidator>
					        <asp:RequiredFieldValidator id="txtSignatureMaxLengthValidator2" runat="server" ErrorMessage="*" 
						        ControlToValidate="txtSignatureMaxLength"></asp:RequiredFieldValidator>
				        </TD>
			        </TR>
			        <TR>
				        <TD class="CommonFormFieldName">
					        <strong><cp:ResourceLabel runat="server" ResourceName="CP_Membership_Settings_AllowGender" /></strong><br />
					        <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_AllowGender_Descr" />
				        </TD>
				        <TD class="CommonFormField">
					        <cp:YesNoRadioButtonList id="optAllowGender" runat="server" RepeatColumns="2" ></cp:YesNoRadioButtonList>
				        </TD>
			        </TR>
			        <TR>
				        <TD class="CommonFormFieldName">
					        <strong><cp:ResourceLabel runat="server" NAME="Resourcelabel35" ResourceName="CP_Membership_Settings_RequireAuthenticationForProfileViewing" /></strong><br />
					        <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_RequireAuthenticationForProfileViewing_Descr" />
				        </TD>
				        <TD class="CommonFormField">
					        <cp:YesNoRadioButtonList id="optRequireAuthenticationForProfileViewing" runat="server" RepeatColumns="2" ></cp:YesNoRadioButtonList>
				        </TD>
			        </TR>
			        <TR>
				        <TD class="CommonFormFieldName">
				            <strong><cp:resourcecontrol ID="Resourcecontrol1" runat="server" resourcename="CP_Settings_General_Menu_DisplayNames" /></strong>
				            <br />
					        <cp:resourcecontrol ID="Resourcecontrol2" runat="Server" resourcename="CP_Settings_General_Menu_DisplayNames_Descr" />
				        </TD>
				        <TD class="CommonFormField">
					        <cp:yesnoradiobuttonlist id="DisplayNames" runat="server" repeatcolumns="2"></cp:yesnoradiobuttonlist></TD>
			        </TR>
		        </TABLE>  
		    </Content>
		</TWC:TabbedPane>
		
		<TWC:TabbedPane runat="server">
		    <Tab><cp:resourcecontrol runat="server" resourcename="CP_Membership_Settings_Avatar_Title" /></Tab>
		    <Content>
		        <table cellspacing="0" cellpadding="3" border="0">
		            <tr>
			            <td class="CommonFormFieldName">
				            <strong><cp:resourcelabel runat="server" resourcename="CP_Membership_Settings_Avatar_EnableAvatar" /></strong><br />
				            <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_Avatar_EnableAvatar_Help" />
			            </td>
			            <td class="CommonFormField">
				            <cp:yesnoradiobuttonlist id="optEnableAvatars" runat="server" repeatcolumns="2"  />
			            </td>
		            </tr>
		            <tr>
			            <td class="CommonFormFieldName">
				            <strong><cp:resourcelabel runat="server" resourcename="CP_Membership_Settings_Avatar_EnableRemoteAvatar" /></strong><br />
				            <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_Avatar_EnableRemoteAvatar_Help" />
			            </td>
			            <td class="CommonFormField">
				            <cp:yesnoradiobuttonlist id="optEnableRemoteAvatars" runat="server" repeatcolumns="2"  />
			            </td>
		            </tr>
		            <tr>
			            <td class="CommonFormFieldName">
				            <strong><cp:resourcelabel runat="server" resourcename="CP_Membership_Settings_Avatar_AvatarSize" /></strong><br />
				            <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_Avatar_AvatarSize_Help" />
			            </td>
			            <td class="CommonFormField">
			                <asp:textbox id="txtAvatarWidth" columns="1" maxlength="3" runat="server"  />
			                x
				            <asp:textbox id="txtAvatarHeight" columns="1" maxlength="3" runat="server"  />
				            <asp:requiredfieldvalidator id="AvatarHeightValidator" runat="server" controltovalidate="txtAvatarHeight" errormessage="*" />
				            <asp:regularexpressionvalidator id="AvatarHeightRegExValidator" runat="server" controltovalidate="txtAvatarHeight" validationexpression="[0-9]*" errormessage="*" />
				            <asp:requiredfieldvalidator id="AvatarWidthValidator" runat="server" controltovalidate="txtAvatarWidth" errormessage="*" />
				            <asp:regularexpressionvalidator id="AvatarWidthRegExValidator" runat="server" controltovalidate="txtAvatarWidth" validationexpression="[0-9]*" errormessage="*" />
			            </td>
		            </tr>
	            </table>
		    </Content>
		</TWC:TabbedPane>
		<TWC:TabbedPane runat="server">
		    <Tab><cp:resourcecontrol runat="server" resourcename="CP_Membership_Settings_Friends_Title" /></Tab>
		    <Content>
		        <table cellspacing="0" cellpadding="3" border="0">
		            <tr>
			            <td class="CommonFormFieldName">
				            <strong><cp:resourcelabel runat="server" resourcename="CP_Membership_Settings_DefaultFriends_Title" /></strong><br />
				            <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_DefaultFriends_Desc" />
			            </td>
			            <td class="CommonFormField">
			                <CSControl:UserLookUpTextBox runat="server" ID="txtDefaultFriends" Width="275px" ValueDelimiter="," />
			            </td>
		            </tr>
		            <tr>
			            <td class="CommonFormFieldName">
				            <strong><cp:resourcelabel runat="server" resourcename="CP_Membership_Settings_RequireMessage" /></strong><br />
				            <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_RequireMessage_Desc" />
			            </td>
			            <td class="CommonFormField">
				            <cp:yesnoradiobuttonlist id="optRequireFriendRequestMessage" runat="server" repeatcolumns="2"  />
			            </td>
		            </tr>
		            <tr>
			            <td class="CommonFormFieldName">
				            <strong><cp:resourcelabel runat="server" resourcename="CP_Membership_Settings_DefaultMessage" /></strong><br />
				            <cp:ResourceControl runat="Server" resourcename="CP_Membership_Settings_DefaultMessage_Desc" />
			            </td>
			            <td class="CommonFormField">
				            <CSControl:Editor runat="server" ID="txtDefaultFriendRequestMessage" />
			            </td>
		            </tr>
		        </table>
		    </Content>
		</TWC:TabbedPane>
		</TWC:TabbedPanes>
	<p class="PanelSaveButton DetailsFixedWidth">
			<cp:ResourceLinkButton id="btnSave" runat="server" resourcename="Save" cssclass="CommonTextButton" />
    </p>
</asp:Content>